//
//  SXWYDetailHeaderView.m
//  ShiXun
//
//  Created by lanou on 15/10/31.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXWYDetailHeaderView.h"

@implementation SXWYDetailHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, kScreenWidth - 20, 30)];
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        _titleLabel.font = [UIFont systemFontOfSize:20];
        [self addSubview:_titleLabel];
        
        _fromLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 50, kScreenWidth - 20, 20)];
        _fromLabel.textAlignment = NSTextAlignmentLeft;
        _fromLabel.font = [UIFont systemFontOfSize:10];
        [self addSubview:_fromLabel];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
